<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
	<title>实际班次管理</title>
	<meta name="decorator" content="default"/>
	<script type="text/javascript">
		$(document).ready(function() {
			
		});
		function page(n,s){
			$("#pageNo").val(n);
			$("#pageSize").val(s);
			$("#searchForm").submit();
        	return false;
        }
	</script>
</head>
<body>
	<ul class="nav nav-tabs">
		<li class="active"><a href="${ctx}/realsche/tRealsche/alllist">实际班次列表</a></li>
	</ul>
	 <form:form id="searchForm" modelAttribute="TRealsche" action="${ctx}/realsche/tRealsche/alllist" method="post" class="breadcrumb form-search">
		<input id="pageNo" name="pageNo" type="hidden" value="${page.pageNo}"/>
		<input id="pageSize" name="pageSize" type="hidden" value="${page.pageSize}"/>
		<ul class="ul-form">
		 	<li><label>班次名称：</label><form:input path="schename" maxlength="50" class="input-medium"/></li>
		 	<li><label>班次类型：</label>
		 		<form:select path="schekind" class="input-medium">
		 			<option value="">--请选择--</option>
					<form:options items="${fns:getDictList('schekind')}"
							itemLabel="label" itemValue="value" htmlEscape="false" />
				</form:select>
			</li>
			<li><label>出发日期 ：</label><input name="departdate" type="text" readonly="readonly"
					maxlength="20" class="input-medium Wdate" 
					value="<fmt:formatDate value="${tRealsche.departdate}" pattern="yyyy-MM-dd"/>" 
					onclick="WdatePicker({dateFmt:'yyyy-MM-dd',isShowClear:false});" /></li>
			<li class="btns"><input id="btnSubmit" class="btn btn-primary" type="submit" value="查询"/></li>
			<li class="clearfix"></li>
		</ul>
	</form:form>
	<sys:message content="${message}"/>
	<table id="contentTable" class="table table-striped table-bordered table-condensed">
		<thead>
			<tr>
				<th>班次名称</th>
				<th>出发日期</th>
				<th>车辆数量</th>
				<th>总座位数</th>
				<shiro:hasPermission name="realsche:tRealsche:edit"><th>操作</th></shiro:hasPermission>
			</tr>
		</thead>
		<tbody>
		<c:forEach items="${page.list}" var="tRealsche">
			<tr>
				<td>${tRealsche.schename}</td>
				<td><fmt:formatDate value="${tRealsche.departdate}" pattern="yyyy-MM-dd"/></td>
				<td>${tRealsche.vehiclenum}</td>
				<td>${tRealsche.totalseats}</td>
				<shiro:hasPermission name="realsche:tRealsche:edit"><td>
    				<a href="${ctx}/realsche/tRealsche/form?id=${tRealsche.realscheid}&updateorview=A">查看详细</a>
				</td></shiro:hasPermission>
			</tr>
		</c:forEach>
		</tbody>
	</table>
	<div class="pagination">${page}</div>
</body>
</html>